package homework;

public class Car2 {
    String brand;
    String color;
    double price;
    Car2(){
    }
    Car2(String brand,String color,double price){
        this.brand = brand;
        this.color = color;
        this.price = price;
    }
    void start(){
        System.out.println("品牌为"+brand+",颜色为"+color+",价格为"+price+"的车,启动了");
    }
    void run(){
        System.out.println("品牌为"+brand+",颜色为"+color+",价格为"+price+"的车,行驶中");
    }
    void stop(){
        System.out.println("品牌为"+brand+",颜色为"+color+",价格为"+price+"的车,停下了");
    }
}
